import Pets.*;
import java.util.Scanner;
public class Frame {
    public static void main(String[] args) {
        Shop shop=new Shop();
        Scanner imp= new Scanner(System.in);
        try {int flag=1;
           while(flag==1){
               System.out.println("欢迎来到宠物店！");
               System.out.println("请选择你的操作：");
               System.out.println("1.录入  2.查看宠物信息  3.购买宠物  0.退出");
               switch (imp.nextInt()){
                   case 1:
                       System.out.println("1.单独录入  2.批量录入");
                       switch (imp.nextInt()){
                           case 1:shop.store();break;
                           case 2:shop.MS();break;
                           default:System.out.println("请输入正确的序号！");
                       }
                       break;
                   case 2:shop.showdog();shop.showcat();shop.showrabbit();break;
                   case 3:shop.buy();break;
                   case 0:flag=0;break;
                   default:System.out.println("请输入正确的序号！");
               }

           }
        }catch (Exception e){
            System.out.println("请按要求输入信息！");
        }
    }
}
